//
// Created by liushuai on 2021/2/14.
//

#include "isSubsequence.h"
bool isSubsequence(string s, string t) {
<<<<<<< HEAD:cxx/algorithm/src/isSubsequence.cc
    int length_t = t.size();
    int length_s = s.size();
    int i=0,j=0;
    while(i<length_s&&j<length_t){
        if(s[i]==t[j]){
            i++;
        }
        j++;
    }
    return i == length_s;
=======
  int length_t = t.size();
  int length_s = s.size();
  int i = 0, j = 0;
  while (i < length_s && j < length_t) {
    if (s[i] == t[j]) {
      i++;
    }
    j++;
  }
  return i == length_s;
>>>>>>> dev:cxx/algorithm/common/src/isSubsequence.cc
}
